package com.un.ebs.production.domain;

import java.util.Date;
import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import com.un.ebs.production.enums.ProductionSeqTypeEnum;
import com.un.ebs.production.enums.QualityCheckPlanTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (ProductionWorkOrderExt)表实体类
 *
 * @author liubo
 * @since 2020-12-02 18:04:19
 */
@Data
@Component
@TableName("v_production_work_order_ext")
@SuppressWarnings("serial")
public class ProductionWorkOrderExt extends Model<ProductionWorkOrderExt> {

                
    @DbField(name = "id",  length = 40 , precision = 0)
    private String id;
                
    @DbField(name = "production_seq_item_id",  length = 40 , precision = 0)
    private String productionSeqItemId;
                
    @DbField(name = "production_order_item_id",  length = 40 , precision = 0)
    private String productionOrderItemId;
                
    @DbField(name = "plan_work_date",  length = -1 , precision = 0)
    private Date planWorkDate;
                
    @DbField(name = "work_personnel_id",  length = 40 , precision = 0)
    private String workPersonnelId;
                
    @DbField(name = "work_personnel_name",  length = 100 , precision = 0)
    private String workPersonnelName;
                
    @DbField(name = "plan_work_qty",  length = 18 , precision = 4)
    private Double planWorkQty;
                
    @DbField(name = "plan_check_qty",  length = 18 , precision = 4)
    private Double planCheckQty;
                
    @DbField(name = "real_check_not_pass_qty",  length = 38 , precision = 4)
    private Double realCheckNotPassQty;
                
    @DbField(name = "quality_pass_status",  length = -1 , precision = 0)
    private Integer qualityPassStatus;
                
    @DbField(name = "real_start_time",  length = -1 , precision = 0)
    private Date realStartTime;
                
    @DbField(name = "real_end_time",  length = -1 , precision = 0)
    private Date realEndTime;
                
    @DbField(name = "completed_personnel_id",  length = 40 , precision = 0)
    private String completedPersonnelId;
                
    @DbField(name = "completed_personnel_name",  length = 100 , precision = 0)
    private String completedPersonnelName;
                
    @DbField(name = "completed_status",  length = -1 , precision = 0)
    private Boolean completedStatus;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at",  length = 40 , precision = 0)
    private String createAt;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_at_name",  length = 100 , precision = 0)
    private String createAtName;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;
                
    @DbField(name = "production_order_code",  length = 100 , precision = 0)
    private String productionOrderCode;
                
    @DbField(name = "production_order_id",  length = 40 , precision = 0)
    private String productionOrderId;
                
    @DbField(name = "production_plan_deliver_date",  length = -1 , precision = 0)
    private Date productionPlanDeliverDate;
                
    @DbField(name = "production_seq_item_code",  length = 20 , precision = 0)
    private String productionSeqItemCode;
                
    @DbField(name = "production_seq_item_name",  length = 100 , precision = 0)
    private String productionSeqItemName;

    @DbField(name = "production_seq_qty",  length = 100 , precision = 0)
    private Double productionSeqQty;

    @DbField(name = "production_seq_user_qty",  length = 100 , precision = 0)
    private Double productionSeqUserQty;

    @DbField(name = "production_seq_not_user_qty",  length = 100 , precision = 0)
    private Double productionSeqNotUserQty;

    @DbField(name = "production_seq_type",  length = -1 , precision = 0)
    private ProductionSeqTypeEnum productionSeqType;
                
    @DbField(name = "sku_code",  length = 100 , precision = 0)
    private String skuCode;
                
    @DbField(name = "sku_name_as",  length = 2100 , precision = 0)
    private String skuNameAs;
                
    @DbField(name = "sku_id",  length = 40 , precision = 0)
    private String skuId;
                
    @DbField(name = "role_id",  length = 40 , precision = 0)
    private String roleId;
                
    @DbField(name = "role_name",  length = 255 , precision = 0)
    private String roleName;
                
    @DbField(name = "seq_item_purchase_type",  length = -1 , precision = 0)
    private ProductPurchaseTypeEnum seqItemPurchaseType;
                
    @DbField(name = "relation_sku_id",  length = 40 , precision = 0)
    private String relationSkuId;
                
    @DbField(name = "seq_item_work_minute",  length = -1 , precision = 0)
    private Integer seqItemWorkMinute;
                
    @DbField(name = "seq_item_work_remark",  length = 1000 , precision = 0)
    private String seqItemWorkRemark;
                
    @DbField(name = "check_plan_qty",  length = -1 , precision = 0)
    private Integer checkPlanQty;
                
    @DbField(name = "check_plan_type",  length = -1 , precision = 0)
    private QualityCheckPlanTypeEnum checkPlanType;


}